package com.shendu.task.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shendu.task.bo.DepartBo;
import com.shendu.task.domain.DepartDoc;

@Service
public class DepartService {

	@Autowired
	private DepartBo departBo;

	public void updateTask(DepartDoc depart) {
		departBo.updateDepart(depart);
	}
	public List<DepartDoc> list(DepartDoc depart) {
		return departBo.list(depart);
	}
	public void add(DepartDoc departDoc) {
		departBo.save(departDoc);
		
	}
}
